// phalanx swap.hpp.cu header file

// Copyright (c) 2011 - 2011 Kohei Takahashi (Flast).
// Distributed under the MIT license. for more detail see COPYING.

// Redefinition C++03's std::swap

#ifndef IG_PHALANX_UTILITY_SWAP_HPP_CU_ONCE_
#define IG_PHALANX_UTILITY_SWAP_HPP_CU_ONCE_

#include <phalanx/config.hpp.cu>

namespace phalanx
{

template < typename T >
PHALANX_CONFIG_DEFAULT_FUNCTION( true )
void
swap( T &_x, T &_y )
{
    T _tmp = _x;
    _x = _y;
    _y = _tmp;
}

}

#endif // IG_PHALANX_UTILITY_SWAP_HPP_CU_ONCE_

